package cheesymock.recorder;

/**
 * A <code>RecorderAssertionError</code> indicates that a recorded proxy has a
 * mismatched expected method invocation.
 *
 * @author Bjorn
 *
 */
public class RecorderAssertionError extends Error {
	private static final long serialVersionUID = -5967909190394113764L;

	/**
	 * Constructs a new record assertion error with the specified detail message.
	 *
	 * @param   message   the detail message. The detail message is saved for
	 *          later retrieval by the {@link #getMessage()} method.
	 */
	public RecorderAssertionError(String message) {
		super(message);
	}

	/**
	 * Constructs a new record assertion error with the specified detail message and
	 * cause.  <p>Note that the detail message associated with
	 * <code>cause</code> is <i>not</i> automatically incorporated in
	 * this error's detail message.
	 *
	 * @param  message the detail message (which is saved for later retrieval
	 *         by the {@link #getMessage()} method).
	 * @param  cause the cause (which is saved for later retrieval by the
	 *         {@link #getCause()} method).  (A <tt>null</tt> value is
	 *         permitted, and indicates that the cause is nonexistent or
	 *         unknown.)
	 */
	public RecorderAssertionError(String message, Throwable cause) {
		super(message, cause);
	}
}
